package com.pretty.test.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pretty.test.controller.system.dict.dto.*;
import com.pretty.test.controller.system.dict.vo.*;
import com.pretty.test.entity.PetsDict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 系统字典Mapper接口
 * @author dujianyu
 * @since 2021-03-31
 */
public interface PetsDictMapper extends BaseMapper<PetsDict> {

    IPage<PetsDictVO> selectDictList(Page<PetsDictVO> page, @Param("searchDTO") PetsDictSearchDTO searchDTO);

    IPage<ChildrenPetsDictVO> selectChildrenDictList(Page<ChildrenPetsDictVO> page,@Param("searchDTO") ChildrenPetsDictSearchDTO searchDTO);

    int childrenDictCodeUpdate(@Param("petsDict") PetsDict petsDict);
}
